package org.charles.zhifou.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import org.charles.zhifou.common.enums.BaseEnum;

/**
 * <h1>评分策略枚举类</h1>
 *
 * @author charles
 * @version 1.0
 */
@AllArgsConstructor
public enum ScoringStrategyEnum implements BaseEnum {

    CUSTOMIZED(0, "自定义评分规则"),
    AI(1, "AI 评分");

    /**
     * 评分策略编码
     */
    @EnumValue
    @JsonValue
    private final Integer code;

    /**
     * 评分策略名称
     */
    private final String value;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return value;
    }
}
